/**
 * 
 */
package com.tomagency.cyberlab.client.rpc;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

import com.tomagency.cyberlab.shared.LoginResult;
import com.tomagency.cyberlab.shared.rpc.ServletServicePfade;


/**
 * @author gfr
 *
 */
public interface UserService extends RemoteService {
	
	public LoginResult doLogin(String username, String pw);
	
	public static class Util {
		  public static UserServiceAsync getInstance() {
			  	UserServiceAsync instance=(UserServiceAsync) GWT.create(UserService.class);
			  	ServiceDefTarget target = (ServiceDefTarget) instance;
			  	target.setServiceEntryPoint(ServletServicePfade.UserServiceRPC);
			  	return instance;
		  }
		}

}
